package com.jr.mapper;

import com.jr.entry.BookInfo;
import com.jr.entry.PageDto;
import com.jr.pojo.util;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.PageRequest;

import java.util.List;

@Mapper
public interface BookInfoMapper {
    public List<BookInfo> selectBookbyInformation(BookInfo bookInfo);

    public List<BookInfo> selectAllbook();


    public int deletebook(Integer id);

    public int addbook(util util);

    List<BookInfo> selectAllbooks(@Param("offset") int offset, @Param("pageSize") int pageSize);
}
